From c3741c00389621e866e924dd112bf64d769da230 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 17 Jul 2006 03:17:24 +0000 Subject: [PATCH] Mark the text of the location label as translatable. 2006-07-16 Matthias Clasen * gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark the text of the location label as translatable. --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ gtk/gtkfilechooserdefault.c | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 818b9549a5..d478461c58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-07-16 Matthias Clasen + * gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark + the text of the location label as translatable. + * gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in the docs. (#347211, Kouhei Sutou) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 818b9549a5..d478461c58 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2006-07-16 Matthias Clasen + * gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark + the text of the location label as translatable. + * gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in the docs. (#347211, Kouhei Sutou) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 98c0aa18c3..d52459efe7 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4521,6 +4521,7 @@ browse_widgets_create (GtkFileChooserDefault *impl) GtkWidget *hpaned; GtkWidget *widget; GtkSizeGroup *size_group; + gchar *text; /* size group is used by the [+][-] buttons and the filter combo */ size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL); @@ -4551,8 +4552,10 @@ browse_widgets_create (GtkFileChooserDefault *impl) impl->location_entry_box = gtk_hbox_new (FALSE, 12); gtk_box_pack_start (GTK_BOX (vbox), impl->location_entry_box, FALSE, FALSE, 0); - - impl->location_label = gtk_label_new_with_mnemonic ("_Location:"); + + text = g_strconcat ("", _("_Location:"), "", NULL); + impl->location_label = gtk_label_new_with_mnemonic (text); + g_free (text); gtk_label_set_use_markup (GTK_LABEL (impl->location_label), TRUE); gtk_widget_show (impl->location_label); gtk_box_pack_start (GTK_BOX (impl->location_entry_box), impl->location_label, FALSE, FALSE, 0); -- 2.30.2